//
//  MsmViewController.m
//  sys_eric
//
//  Created by mac on 11-11-16.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "MsmViewController.h"
#import "SendMessageViewController.h"
#import "SendStatusViewController.h"
#import "NumberQueryViewController.h"
#import "ScheduledTaskViewController.h"
#import "SendStatisticsViewController.h"



@implementation MsmViewController
@synthesize sendMessageViewController;
@synthesize sendStatusViewController;
@synthesize numberQueryViewController;
@synthesize scheduledTaskViewController;
@synthesize sendStatisticsViewController;

-(IBAction)enterSendMessageView:(id)sender
{
    SendMessageViewController *sendController=[[SendMessageViewController alloc]init];
    self.sendMessageViewController=sendController;
    [self.navigationController pushViewController:sendController animated:YES];
    [sendController release];
    
}

-(IBAction)enterSendStatusView:(id)sender
{
    SendStatusViewController *sendStatusController=[[SendStatusViewController alloc]init];
    self.sendStatusViewController=sendStatusController;
    [self.navigationController pushViewController:sendStatusController animated:YES];
    [sendStatusController release];
    
}

-(IBAction)enterNumberQueryView:(id)sender
{
    NumberQueryViewController *numberQueryController=[[NumberQueryViewController alloc]init];
    self.numberQueryViewController=numberQueryController;
    [self.navigationController pushViewController:numberQueryController animated:YES];
    [numberQueryController release];
}


-(IBAction)enterScheduledTastView:(id)sender
{
    ScheduledTaskViewController *scheduledTastController=[[ScheduledTaskViewController alloc]init];
    self.scheduledTaskViewController=scheduledTastController;
    [self.navigationController pushViewController:scheduledTastController animated:YES];
    [scheduledTastController release];
}


-(IBAction)enterSendStatisticsView:(id)sender
{
    SendStatisticsViewController *sendStatisticsController=[[SendStatisticsViewController alloc]init];
    self.sendStatisticsViewController=sendStatisticsController;
    [self.navigationController pushViewController:sendStatisticsController animated:YES];
    [sendStatisticsController release];
    
}



- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)dealloc
{
    [sendStatisticsViewController release];
    [sendMessageViewController release];
    [sendStatisticsViewController release];
    [numberQueryViewController release];
    [scheduledTaskViewController release];
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    self.title=@"短信管理";
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    self.sendStatisticsViewController=nil;
    self.sendMessageViewController=nil;
    self.scheduledTaskViewController=nil;
    self.numberQueryViewController=nil;
    self.scheduledTaskViewController=nil;
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
